cmake_minimum_required(VERSION 2.8.3)
project(ubt_atopic)


find_package(catkin REQUIRED COMPONENTS
  roscpp
  ubt_com
)



catkin_package( # 这句是保证能rosrun ubt_topic ubt_pub能执行,给其他包使用一定要加这个，比如ubt_com中的这个，不加会编译失败
  #  CATKIN_DEPENDS roscpp  
)

###########
## Build ##
###########

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)



add_executable(ubt_pub src/publish.cpp)
target_link_libraries(ubt_pub ${catkin_LIBRARIES} 

)
# add_dependencies(ubt_pub ubt_com) #保证先编译ubt_com
# add_dependencies(ubt_pub ${PROJECT_NAME}_generate_messages_cpp) # 只有在这个文件中定义msg时才用这个，保证编译时先编译msg


install(TARGETS ubt_pub
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)


